package tt.dz.order.util.page;

/**
 * 分页Director<br>
 * @see PaginationBuilder#doBusiness(String, String, java.util.Map)
 * @see PaginationBuilder#doPagination(int, int)
 * @see DefaultPaginationDirector
 * @author anson-worker
 *
 */
public interface PaginationDirector {

	/**
	 * 设置分页构建器
	 * 
	 * @param builder
	 */
	void setBuilder(PaginationBuilder builder);

	/**
	 * 构造
	 * @param clazz
	 * @return
	 */
	<T> Pagination<T> construct(Class<T> clazz);
}
